package org.seedltd.upms.mapper.detection;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.seedltd.core.base.IBaseMapper;
import org.seedltd.upms.model.detection.entity.DetectionOrderTracing;

/**
 * 订单状态节点数据库访问接口
 */
public interface DetectionOrderTracingMapper extends IBaseMapper<DetectionOrderTracing> {

    @Update("update detection_order_tracing set operator = null, flow_time = null where flow_code > #{flowCode} and order_id = #{orderId}")
    Integer updateAfter(@Param("orderId") Long orderId, @Param("flowCode") Integer flowCode);
}
